/*
 * @Date: 2022-01-29 07:33:43
 * @LastEditTime: 2022-01-29 07:34:26
 */
import { login, getUserInfo, getUserDetailById } from './user.js'
import {
  getDepartments,
  DelDepartments,
  addDepartments,
  getDetailDepartments,
  editDepartments

} from './departments.js'
import {
  getEmployeeSimple,
  getEmployeeMultiple,
  deleteEmployee,
  addEmployee,
  addMultipleEmployee,
  saveUserInfo,
  updatePersonal,
  getPersonalDetail,
  getJobDetail,
  updateJob,
  assignRoles
} from './employees'
import {
  getAllRole,
  getCompanyInfoById,
  DeleteRoleById,
  editRoleById,
  getDetailRoleById,
  addRole,
  assignPerm
} from './setting.js'

// 权限
import {
  getPermissionList,
  addPermission,
  updatePermission,
  delPermission,
  getPermissionDetail

} from './permission'

// 审批

import {
  startProcess
} from './approvals'
// 登录API
export const loginAPI = login
// 获取用户信息
export const getUserInfoAPI = getUserInfo

// 获取所有企业部门列表
export const getDepartmentsAPI = getDepartments
// 获取指定部门列表
export const getDetailDepartmentsAPI = getDetailDepartments
// 删除子部门
export const DelDepartmentsAPI = DelDepartments
// 增加子部门
export const addDepartmentsAPI = addDepartments
// 获取用户部门负责人
export const getEmployeeSimpleAPI = getEmployeeSimple
// 编辑部门
export const editDepartmentsAPI = editDepartments

// 根据id查询公司信息
export const getCompanyInfoByIdAPI = getCompanyInfoById

// 获取所有角色信息
export const getAllRoleAPI = getAllRole

// 根据id查询角色信息
export const getDetailRoleByIdAPI = getDetailRoleById

// 删除指定角色
export const DeleteRoleByIdAPI = DeleteRoleById

// 更新指定角色
export const editRoleByIdAPI = editRoleById

// 添加角色
export const addRoleAPI = addRole

// 获取员工详细信息列表
export const getEmployeeMultipleAPI = getEmployeeMultiple

// 删除员工
export const deleteEmployeeAPI = deleteEmployee

// 新增员工
export const addEmployeeAPI = addEmployee

// 批量新增员工
export const addMultipleEmployeeAPI = addMultipleEmployee

// 个人详情模块

// 获取员工基本信息
export const getUserDetailByIdAPI = getUserDetailById

// 保存员工基本信息
export const saveUserInfoAPI = saveUserInfo

// 读取用户个人信息
export const getPersonalDetailAPI = getPersonalDetail

// 更新用户个人信息
export const updatePersonalAPI = updatePersonal

// 岗位信息模块
// 获取用户的岗位信息
export const getJobDetailAPI = getJobDetail

// 保存岗位信息
export const updateJobAPI = updateJob

// 给员工分配角色
export const assignRolesAPI = assignRoles

// 获取所有权限点
export const getPermissionListAPI = getPermissionList
// 增加权限
export const addPermissionAPI = addPermission
// 更新权限
export const updatePermissionAPI = updatePermission
// 删除权限
export const delPermissionAPI = delPermission
// 获取权限的细节
export const getPermissionDetailAPI = getPermissionDetail

// 给角色分配权限
export const assignPermAPI = assignPerm

// 流程申请
export const startProcessAPI = startProcess

